package com.xdwanj.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data                //生成getter,setter等函数
@NoArgsConstructor    //生成全参数构造函数
@AllArgsConstructor    //生成无参数构造函数
@Builder            //实现Builder设计模式
public class Pet {
    //危机等级
    public static final int LEVEL_1 = 1;
    public static final int LEVEL_2 = 2;
    public static final int LEVEL_3 = 3;
    public static final int LEVEL_4 = 4;
    public static final int LEVEL_5 = 5;

    /**
     * 宠物id
     */
    private Integer id;

    /**
     * 宠物名字
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 宠物类别
     */
    private String petType;

    /**
     * 雌雄
     */
    private Integer sex;

    /**
     * 体重
     */
    private Double weight;

    /**
     * 宠物状态
     */
    private String info;

    /**
     * 绝育状态
     */
    private String sterilization;

    /**
     * 严重程度
     */
    private Integer level;

    /**
     * 最近的驱虫日期
     */
    private Date expellingParasiteDate;

    /**
     * 疫苗史
     */
    private VacHistory vacHistory;

    /**
     * 用户对象
     */
    private User user;

    /**
     * 用户主键
     */
    private Integer userId;

}
